package com.trkj.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.trkj.pojo.Leave;

public interface LeaveDAO extends JpaRepository<Leave, Integer>,JpaSpecificationExecutor<Leave> {
//	@Query(nativeQuery=true,value="select leave0_.leave_id as leave_id1_11_,leave0_.dept_id as dept_id9_11_,leave0_.emp_id as emp_id10_11_,leave0_.leave_day as leave_da2_11_,leave0_.leave_endtime as leave_en3_11_,leave0_.leave_explain as leave_ex4_11_,leave0_.leave_starttime as leave_st5_11_,leave0_.leave_type as leave_ty6_11_,leave0_.leave_uptime as leave_up7_11_,leave0_.lunch_people as lunch_pe8_11_,leave0_.position_id as positio11_11_ from `leave` leave0_ where leave0_.lunch_people=?1")
//	public List<Leave> findByLunchPeople(Integer lunchPeople);
	
	public List<Leave> findByLunchPeople(Integer lunchPeople);
}
